﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using static System.Windows.Forms.VisualStyles.VisualStyleElement;

namespace Tester
{
    public partial class FormMain : Form
    {
        public FormMain()
        {
            InitializeComponent();
        }


        private void FormMain_Load(object sender, EventArgs e)
        {
            FormBaogao form = new FormBaogao();
            form.TopLevel = false;      //设置为非顶级控件
            form.Parent = tabPage1;//设置父节点
            form.FormBorderStyle = FormBorderStyle.None;  //外边框干掉
            form.Show();               //让窗体form显示出来
            tabPage1.Controls.Add(form);


            FormTestcase form2 = new FormTestcase();
            form2.TopLevel = false;      //设置为非顶级控件
            form2.Parent = tabPage2;//设置父节点
            form2.FormBorderStyle = FormBorderStyle.None;  //外边框干掉
            form2.Show();               //让窗体form显示出来
            tabPage2.Controls.Add(form2);
        }


        private void toolStripButton4_Click(object sender, EventArgs e)
        {

        }
    }
}
